package org.dwell.dubbox.consumer.launch;

import org.dwell.dubbox.api.DemoSayHelloService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * Created by Jange on 2016/3/23.
 */
public class ConsumerLauncher {

    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:kdcc-api-consumer.xml");

        context.start();

        DemoSayHelloService demoSayHelloService = (DemoSayHelloService) context.getBean("demoSayHelloService");
        String hello = demoSayHelloService.sayHello("chin&emily");

        System.out.println(hello);

        System.in.read();
    }

}
